import movieIndexView from '../views/movie.art'


class Index {
  render() {
    let html=movieIndexView({})
    $('#movie-root').html(html)
    let city=window.localStorage.city
    $('.position').html(`${city}`)

    $('footer li').on('tap',function(){
      location.hash=$(this).attr('data-index')
    })

    $('.nav-box div').on('tap',function(){
      location.hash=$(this).attr('data-to')
    })
  // console.log(window.localStorage.city)

  }
}

export default  new Index()